package facadePatterrn;

public class Fund {
    Stock stock1;
    Stock stock2;
    NationalDeebt nationalDeebt;
    Realty realty;
    public Fund(){
        stock1=new Stock();
        stock2=new Stock();
        nationalDeebt=new NationalDeebt();
        realty=new Realty();

    }
    public void buyFund(){
        stock1.buy();
        stock2.buy();
        nationalDeebt.buy();
        realty.buy();
    }
    public void sellFund(){
        stock1.sell();
        stock2.sell();
        nationalDeebt.sell();
        realty.sell();
    }
}
